#ifndef KEY_WIDGET_H
#define KEY_WIDGET_H

#include <QLabel>
#include <QWidget>

class KeyWidget : public QWidget
{
    Q_OBJECT
public:
    explicit KeyWidget(QWidget *parent = nullptr);

private:
    QLabel* label;

protected:
    // 键盘按下
    void keyPressEvent(QKeyEvent* event) override;

    // 键盘释放
    void keyReleaseEvent(QKeyEvent *event) override;

signals:
};

#endif // KEY_WIDGET_H
